# cd CodingTraining/cpp/argParse
# cmake -B build -G "MinGW Makefiles"
# cmake --build build
# rm -rf build;cmake -B build -G "MinGW Makefiles";cmake --build build

cmake_minimum_required(VERSION 3.24)
set(APP_NAME gflagsDemo)
project(${APP_NAME})
message(STATUS "[Nnnnut] into ${APP_NAME}")

set(gflags_DIR "D:\\code\\gflags\\lib\\cmake\\gflags")
find_package(gflags REQUIRED)
message("[Nnnnut] GFLAGS_INCLUDE_DIR    ${GFLAGS_INCLUDE_DIR}")
message("[Nnnnut] GFLAGS_LIBRARIES      ${GFLAGS_LIBRARIES}")

add_compile_options(-fexec-charset=GBK
                    -DDEBUG)


SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}) # 设置可执行文件输出路径

add_executable(${APP_NAME} ${APP_NAME}.cpp)
target_include_directories(${APP_NAME} PRIVATE ${GFLAGS_INCLUDE_DIR})
target_link_libraries(${APP_NAME} ${GFLAGS_LIBRARIES})

